package cn.ekuma.epos.analysis.productStockDiary;

import java.util.List;
import com.openbravo.bean.viewbean.ProductStoreDiaryView;
import com.openbravo.data.basic.BasicException;
import com.openbravo.pos.panels.link.model.ProductStoreDiaryVTableModel;
import cn.ekuma.epos.datalogic.I_DataLogicERP;

public class AnalysisModelManager {
	I_DataLogicERP dlSales;
	ProductStoreDiaryVTableModel dialeyTableModel;
	private List<ProductStoreDiaryView> datas;
	
	public AnalysisModelManager(I_DataLogicERP dlSales) {
		this.dlSales=dlSales;
		dialeyTableModel=new ProductStoreDiaryVTableModel();
	}

	public void query(Object[] beforeFilterParas) {
		try {
			 datas =dlSales.listByFilter(ProductStoreDiaryView.class,beforeFilterParas); 
		} catch (BasicException e) {
			e.printStackTrace();
			return;
		}
		dialeyTableModel.resert(datas);
	}

	public ProductStoreDiaryVTableModel getDialeyTableModel() {
		return dialeyTableModel;
	}
}
